home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / 3dprograms / rayshade-4.0 / man / applymap.man next >
Text File  |  1995-02-13  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. APPLYMAP(1)                                           APPLYMAP(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        applymap - Apply the color map in an RLE file to the pixel
  9.        data
  10.  
  11. SSYYNNOOPPSSIISS
  12.        aappppllyymmaapp [ --ll ] [ --oo _o_u_t_f_i_l_e ] [ _i_n_f_i_l_e ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.        This program takes the color map in  an  _R_L_E(5)  file  and
  16.        modifies  the  pixel  values  by applying the color map to
  17.        them.  If there is more than  one  color  channel  in  the
  18.        input  file,  the  color map in the input file should have
  19.        the same number of channels.  If the input file has a sin­
  20.        gle color channel, the output file will have the same num­
  21.        ber of color channels as the color map.
  22.  
  23.        Each pixel in the input file is mapped as follows:  For  a
  24.        multi-channel  input  file, a pixel in channel _i is mapped
  25.        as _m_a_p_[_i_]_[_p_i_x_e_l_] _>_> _8, producing a pixel in output channel
  26.        _i.  The right shift takes the 16 bit color map value to an
  27.        8 bit pixel value.  For a single channel  input  file,  to
  28.        produce  a  pixel in output channel _i is produced from the
  29.        corresponding input pixel value as _m_a_p_[_i_]_[_p_i_x_e_l_] _>_> _8.
  30.  
  31. OOPPTTIIOONNSS
  32.        --ll     This option will cause a  linear  (identity)  color
  33.               map  to be loaded into the output file.  Otherwise,
  34.               the output file will have no color map.
  35.  
  36.        _i_n_f_i_l_e The input will be read from this  file,  otherwise,
  37.               input will be taken from stdin.
  38.  
  39.        --oo _o_u_t_f_i_l_e
  40.               If  specified, output will be written to this file,
  41.               otherwise it will go to stdout.
  42.  
  43. SSEEEE AALLSSOO
  44.        _r_l_e_l_d_m_a_p(1), _u_r_t(1), _R_L_E(5).
  45.  
  46. AAUUTTHHOORR
  47.        Spencer W. Thomas, University of Utah
  48.  
  49. BBUUGGSS
  50.        If the image data and color map channels in the input file
  51.        do  not  conform  to the restriction stated above (N->N or
  52.        1->N) the program will most likely core dump.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. 1                          Nov 12, 1986                         1
  65.  
  66.  
  67.